--------------------------------------------------------
--
-- Link Physical
-- 
-- Physical Piece Between Links and Processors
--
--------------------------------------------------------


library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity link_physical is

  port ( link_a   : in  std_logic;
         link_b   : in  std_logic;
         or_out   : out std_logic
       );
         
end link_physical;

architecture bhv of link_physical is
begin
  
  or_two_links : process ( link_a, link_b )
    variable buff_link_a : std_logic;
    variable buff_link_b : std_logic;
  begin

    if ( (link_a = '1') or (link_a = '0') ) then
      buff_link_a := link_a;
    else
      buff_link_a := '0';
    end if;

    if ( (link_b = '1') or (link_b = '0') ) then
      buff_link_b := link_b;
    else
      buff_link_b := '0';
    end if;

    or_out <= buff_link_a or buff_link_b;

  end process or_two_links;

end bhv;
